<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>固定定位</title>
</head>
<style>
    .fox {
        position: fixed;
        top: 100px;
        right: 40px;
    }
</style>
<body>
<div class="fox">
    <img src="images/fox.jpg">
</div>
</body>
</html>